import http from '@/utils/http.js'
// 获取微信二维码
export function getWxEwm(params) {
  return http.get('/app/web_mini_login/login_code', params)
}
// 获取微信二维码
export function getWxEwmStatus(params) {
  return http.get('/app/web_mini_login/login_code_check', params)
}
// 获取用户信息
export function getUserInfo(params) {
  return http.get('/app/api/user_info', params)
}
// 获取app二维码
export function getAppEwm(params) {
  return http.get('/app/wechat/auth_qrcode', params)
}
// 获取app二维码状态
export function getAppEwmStatus(params) {
  return http.get('/app/wechat/qrcode_check', params)
}
// 获取图形验证码
export function getPicCode(params) {
  return http.post('/app/login/code_img', params)
}
// 发送手机验证码
export function postPhoneCode(params) {
  return http.post('/app/login/wap_sms_sendv2', params)
}
// 手机号登录
export function submitPhone(params) {
  return http.post('/app/login/wap_sms_login', params)
}
// 退出登录
export function loginOut(params) {
  return http.get('/app/login/login_out', params)
}

// 发送百度短信验证码
export function getBaiduPicCode(data) {
  return http.post('/wxpub/activity/activity_sms_send', data)
}

// 百度手机号确认登陆
export function submitBaiduPhone(data) {
  return http.post('/wxpub/activity/scrm_marketing_clue', data)
}
